#pragma once
#include "WorldEntity.h"
#include "Visualisation.h"
#include "Vector2D.h"

enum eDirection
{
	eFRONT,
	eLEFT,
	eRIGHT
};

class CEntityProjectile :public CWorldEntity
{
private:
	//int direction;
	int offsetSpawnX;
	int offsetSpawnY;
	CVector2D speed;

public:
	CEntityProjectile(int indexSprite, int indexFrame, CVector2D speed, int currentPosX, int currentPosY, int health, 
		int collisionCost, bool active, int side ,int offsetSpawnX, int offsetSpawnY);
	~CEntityProjectile(void);
	void CEntityProjectile::update(void);
	void CEntityProjectile::render(void);
	void CEntityProjectile::die(void);
	void CEntityProjectile::checkCollision(void);


	int CEntityProjectile::getDirection(void) const;
	int CEntityProjectile::getOffsetSpawnX(void) const;
	int CEntityProjectile::getOffsetSpawnY(void) const;

	void CEntityProjectile::setDirection(int direction);
	void CEntityProjectile::setOffsetSpawnX(int offsetX);
	void CEntityProjectile::setOffsetSpawnY(int offsetY);

};
